summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlat9nq <22451773+lat9nq@users.noreply.github.com>2023-07-23 22:21:08 +0200
committerlat9nq <22451773+lat9nq@users.noreply.github.com>2023-07-23 22:21:08 +0200
commitf84e7b4656f1e69cced4e58117df920efaec922e (patch)
treef2a61ea579b4efd167277ba44c1085ed3f84c34c
parentshared_widget: Use QRegularExpression (diff)
downloadyuzu-f84e7b4656f1e69cced4e58117df920efaec922e.tar
yuzu-f84e7b4656f1e69cced4e58117df920efaec922e.tar.gz
yuzu-f84e7b4656f1e69cced4e58117df920efaec922e.tar.bz2
yuzu-f84e7b4656f1e69cced4e58117df920efaec922e.tar.lz
yuzu-f84e7b4656f1e69cced4e58117df920efaec922e.tar.xz
yuzu-f84e7b4656f1e69cced4e58117df920efaec922e.tar.zst
yuzu-f84e7b4656f1e69cced4e58117df920efaec922e.zip
-rw-r--r--src/common/settings_common.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/common/settings_common.h b/src/common/settings_common.h
index 6f90ae90d..2efb329b0 100644
--- a/src/common/settings_common.h
+++ b/src/common/settings_common.h
@@ -46,17 +46,18 @@ constexpr u8 SpecializationTypeMask = 0xf;
constexpr u8 SpecializationAttributeMask = 0xf0;
constexpr u8 SpecializationAttributeOffset = 4;
+// Scalar and countable could have better names
enum Specialization : u8 {
Default = 0,
- Time = 1,
- Hex = 2,
- List = 3,
- RuntimeList = 4,
- Scalar = 5,
- Countable = 6,
- Paired = 7,
-
- Percentage = (1 << SpecializationAttributeOffset),
+ Time = 1, // Duration or specific moment in time
+ Hex = 2, // Hexadecimal number
+ List = 3, // Setting has specific members
+ RuntimeList = 4, // Members of the list are determined during runtime
+ Scalar = 5, // Values are continuous
+ Countable = 6, // Can be stepped through
+ Paired = 7, // Another setting is associated with this setting
+
+ Percentage = (1 << SpecializationAttributeOffset), // Should be represented as a percentage
};
class BasicSetting;